﻿using RoslynProxy.Core;

namespace RoslynProxy.Builder
{
    public interface IMyOtherService
    {
        void Show();
    }

    public class MyOtherService : IMyOtherService
    {
        public void Show()
        {
            Console.WriteLine("MyOtherService");
        }
    }

    public class MyOtherServiceProxy : RoslynDispatchProxy<MyOtherServiceProxy, IMyOtherService, MyOtherService>
    {
        protected override void BeginInvoke()
        {
            Console.WriteLine("Begin Invoke");
        }

        protected override void EndInvoke()
        {
            Console.WriteLine("End Invoke");
        }
    }
}
